<!-- 公共顶部组件涵盖用户信息初始化和顶部ui组件 -->
<template>
    <div>
        <!-- 引入公共顶部组件 -->
        <public-top :user-info-data="userinfo" :is-show-type="isType"></public-top>
    </div>
</template>

<script lang="ts">
import {
    Vue,
    Prop,
    Component
} from 'nuxt-property-decorator'
import {
    State
} from 'vuex-class'
import publicTop from './publicTop.vue'
import {InitUserInfo} from '~/method'
@Component({
    name: 'commonTop',
    components: {
        publicTop
    }
})
export default class Commonlogin extends Vue {
    @State userinfo: any
    @Prop() isType !: String
    mounted () {
        /* eslint-disable no-new */
        new InitUserInfo(this.$store)
    }
}
</script>
